<template>
    <HeaderComp />
    
    <Mainaddview v-if="citys.length>0"/>
       
    <MainComp v-else/>
</template>

<script setup>
import HeaderComp from '@/components/HeaderComp.vue';
import MainComp from '@/components/MainComp.vue';
import Mainaddview from '@/components/Mainaddview.vue';
import { useCodeStore } from '@/stores/code.js';
import { storeToRefs } from 'pinia';
const store = useCodeStore();
const { citys } = storeToRefs(store);
</script>

<style scoped>
</style>